<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Spring Session Reference - Spring Session | Docs4dev</title>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="Spring Session provides an API and implementations for managing a user’s session information.">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:type" content="website">
<meta property="og:title" content="Spring Session Reference - Spring Session">
<meta property="og:url" content="https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/">
<meta property="og:site_name" content="Docs4dev">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="Spring Session provides an API and implementations for managing a user’s session information.">
<meta name="generator" content="Docs4dev template engine">
<link rel="stylesheet" href="static/css/app.min.css">
<link rel="shortcut icon" href="https://www.docs4dev.com/static/images/favicon.ico" type="image/x-icon">
<script async="" src="static/js/js.js"></script>
<script async="" src="static/js/adsbygoogle.js" crossorigin="anonymous"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-129571937-1');
  </script>
<link rel="amphtml" href="https://www.docs4dev.com/amp/docs/en/spring-session/2.1.2.RELEASE/reference/index.html">

<link rel="stylesheet" href="static/css/manual.css">
<script type="application/ld+json">{"name":null,"headline":"Spring Session Reference-Spring Session","inLanguage":"en-US","version":"2.1.2.RELEASE","image":"/static/icon/icon-spring-session.svg","datePublished":"2021-05-20T12:51:01Z","dateCreated":"2021-05-20T12:51:01Z","dateModified":"2021-07-03T12:24:35Z","@context":"https://schema.org/","@type":"APIReference","abstract":"Spring Session provides an API and implementations for managing a user’s session information."}</script>
</head>
<body>
<div class="book with-summary">
<div class="book-summary">
<div class="logo">
<a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference');" style="color: inherit;">
<img src="static/picture/icon-spring-session.svg" style="width: 48px; height: 48px;" alt="Logo">
</a>
<b style="color: inherit; margin-left: 8px;">Spring Session Reference</b>
</div>
<div class="item">
<div>
<label for="version">版本</label>
<select id="version" onchange="onVersionChange(this)">
<option value="1.3.4.RELEASE">1.3.4.RELEASE</option>
<option value="2.1.2.RELEASE" selected="selected">2.1.2.RELEASE</option>
</select>
</div>
<div style="margin-top: 8px;">
<label for="language">语言</label>
<select id="language" onchange="onLangChange(this)" value="en">
<option value="en" selected="selected">English</option>
<option value="zh">中文</option>
</select>
</div>

</div>
<div class="item menus">
<a title="Table of Contents" style="margin-right: 8px;" href="#">
<i class="fa fa-chevron-left"></i>
<span style="margin-left: 2px;">返回目录</span>
</a>
</div>
<nav role="navigation" id="navigation">
<ul class="summary">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/pr01.html');"> </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/introduction.html');" title="1. Introduction"> 1. Introduction </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/what-s-new-in-2-0.html');" title="2. What’s New in 2.0"> 2. What’s New in 2.0 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/samples.html');" title="3. Samples and Guides (Start Here)"> 3. Samples and Guides (Start Here) </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/modules.html');" title="4. Spring Session Modules"> 4. Spring Session Modules </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html');" title="5. HttpSession Integration"> 5. HttpSession Integration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-why');" title="5.1. Why Spring Session &amp; HttpSession?"> 5.1. Why Spring Session &amp; HttpSession? </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-redis');" title="5.2. HttpSession with Redis"> 5.2. HttpSession with Redis </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-redis-jc');" title="5.2.1. Redis Java Based Configuration"> 5.2.1. Redis Java Based Configuration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-spring-configuration');" title="Spring Java Configuration"> Spring Java Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#java-servlet-container-initialization');" title="Java Servlet Container Initialization"> Java Servlet Container Initialization </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-redis-xml');" title="5.2.2. Redis XML Based Configuration"> 5.2.2. Redis XML Based Configuration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-xml-spring-configuration');" title="Spring XML Configuration"> Spring XML Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#xml-servlet-container-initialization');" title="XML Servlet Container Initialization"> XML Servlet Container Initialization </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc');" title="5.3. HttpSession with JDBC"> 5.3. HttpSession with JDBC </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-jc');" title="5.3.1. JDBC Java Based Configuration"> 5.3.1. JDBC Java Based Configuration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-spring-configuration');" title="Spring Java Configuration"> Spring Java Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#java-servlet-container-initialization-2');" title="Java Servlet Container Initialization"> Java Servlet Container Initialization </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-xml');" title="5.3.2. JDBC XML Based Configuration"> 5.3.2. JDBC XML Based Configuration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-xml-spring-configuration');" title="Spring XML Configuration"> Spring XML Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#xml-servlet-container-initialization-2');" title="XML Servlet Container Initialization"> XML Servlet Container Initialization </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot');" title="5.3.3. JDBC Spring Boot Based Configuration"> 5.3.3. JDBC Spring Boot Based Configuration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot-spring-configuration');" title="Spring Boot Configuration"> Spring Boot Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot-configuration');" title="Configuring the DataSource"> Configuring the DataSource </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot-servlet-configuration');" title="Servlet Container Initialization"> Servlet Container Initialization </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-hazelcast');" title="5.4. HttpSession with Hazelcast"> 5.4. HttpSession with Hazelcast </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#security-spring-configuration');" title="5.4.1. Spring Configuration"> 5.4.1. Spring Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#servlet-container-initialization');" title="5.4.2. Servlet Container Initialization"> 5.4.2. Servlet Container Initialization </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-how');" title="5.5. How HttpSession Integration Works"> 5.5. How HttpSession Integration Works </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-rest');" title="5.6. HttpSession &amp; RESTful APIs"> 5.6. HttpSession &amp; RESTful APIs </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#rest-spring-configuration');" title="5.6.1. Spring Configuration"> 5.6.1. Spring Configuration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#servlet-container-initialization-2');" title="5.6.2. Servlet Container Initialization"> 5.6.2. Servlet Container Initialization </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-httpsessionlistener');" title="5.7. HttpSessionListener"> 5.7. HttpSessionListener </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html');" title="6. WebSocket Integration"> 6. WebSocket Integration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-why');" title="6.1. Why Spring Session &amp; WebSockets?"> 6.1. Why Spring Session &amp; WebSockets? </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-usage');" title="6.2. WebSocket Usage"> 6.2. WebSocket Usage </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-httpsession');" title="6.2.1. HttpSession Integration"> 6.2.1. HttpSession Integration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-spring-configuration');" title="6.2.2. Spring Configuration"> 6.2.2. Spring Configuration </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html');" title="7. WebSession Integration"> 7. WebSession Integration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html#websession-why');" title="7.1. Why Spring Session &amp; WebSession?"> 7.1. Why Spring Session &amp; WebSession? </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html#websession-redis');" title="7.2. WebSession with Redis"> 7.2. WebSession with Redis </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html#websession-how');" title="7.3. How WebSession Integration Works"> 7.3. How WebSession Integration Works </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html');" title="8. Spring Security Integration"> 8. Spring Security Integration </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html#spring-security-rememberme');" title="8.1. Spring Security Remember-Me Support"> 8.1. Spring Security Remember-Me Support </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html#spring-security-concurrent-sessions');" title="8.2. Spring Security Concurrent Session Control"> 8.2. Spring Security Concurrent Session Control </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html#spring-security-concurrent-sessions-limitations');" title="8.3. Limitations"> 8.3. Limitations </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html');" title="9. API Documentation"> 9. API Documentation </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-session');" title="9.1. Session"> 9.1. Session </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-sessionrepository');" title="9.2. SessionRepository"> 9.2. SessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-findbyindexnamesessionrepository');" title="9.3. FindByIndexNameSessionRepository"> 9.3. FindByIndexNameSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactivesessionrepository');" title="9.4. ReactiveSessionRepository"> 9.4. ReactiveSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablespringhttpsession');" title="9.5. EnableSpringHttpSession"> 9.5. EnableSpringHttpSession </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablespringwebsession');" title="9.6. EnableSpringWebSession"> 9.6. EnableSpringWebSession </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository');" title="9.7. RedisOperationsSessionRepository"> 9.7. RedisOperationsSessionRepository </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-new');" title="9.7.1. Instantiating a RedisOperationsSessionRepository"> 9.7.1. Instantiating a RedisOperationsSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-config');" title="9.7.2. EnableRedisHttpSession"> 9.7.2. EnableRedisHttpSession </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#custom-redisserializer');" title="Custom RedisSerializer"> Custom RedisSerializer </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#redis-taskexecutor');" title="9.7.3. Redis TaskExecutor"> 9.7.3. Redis TaskExecutor </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-storage');" title="9.7.4. Storage Details"> 9.7.4. Storage Details </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#saving-a-session');" title="Saving a Session"> Saving a Session </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-writes');" title="Optimized Writes"> Optimized Writes </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-expiration');" title="Session Expiration"> Session Expiration </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-sessiondestroyedevent');" title="9.7.5. SessionDeletedEvent and SessionExpiredEvent"> 9.7.5. SessionDeletedEvent and SessionExpiredEvent </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-sessioncreatedevent');" title="9.7.6. SessionCreatedEvent"> 9.7.6. SessionCreatedEvent </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-cli');" title="9.7.7. Viewing the Session in Redis"> 9.7.7. Viewing the Session in Redis </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository');" title="9.8. ReactiveRedisOperationsSessionRepository"> 9.8. ReactiveRedisOperationsSessionRepository </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-new');" title="9.8.1. Instantiating a ReactiveRedisOperationsSessionRepository"> 9.8.1. Instantiating a ReactiveRedisOperationsSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-config');" title="9.8.2. EnableRedisWebSession"> 9.8.2. EnableRedisWebSession </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-writes');" title="Optimized Writes"> Optimized Writes </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-cli');" title="9.8.3. Viewing the Session in Redis"> 9.8.3. Viewing the Session in Redis </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-mapsessionrepository');" title="9.9. MapSessionRepository"> 9.9. MapSessionRepository </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-mapsessionrepository-new');" title="9.9.1. Instantiating MapSessionRepository"> 9.9.1. Instantiating MapSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-mapsessionrepository-hazelcast');" title="9.9.2. Using Spring Session and Hazlecast"> 9.9.2. Using Spring Session and Hazlecast </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactivemapsessionrepository');" title="9.10. ReactiveMapSessionRepository"> 9.10. ReactiveMapSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository');" title="9.11. JdbcOperationsSessionRepository"> 9.11. JdbcOperationsSessionRepository </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository-new');" title="9.11.1. Instantiating a JdbcOperationsSessionRepository"> 9.11.1. Instantiating a JdbcOperationsSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository-config');" title="9.11.2. EnableJdbcHttpSession"> 9.11.2. EnableJdbcHttpSession </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#custom-lobhandler');" title="Custom LobHandler"> Custom LobHandler </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#custom-conversionservice');" title="Custom ConversionService"> Custom ConversionService </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository-storage');" title="9.11.3. Storage Details"> 9.11.3. Storage Details </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#transaction-management');" title="9.11.4. Transaction management"> 9.11.4. Transaction management </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-hazelcastsessionrepository');" title="9.12. HazelcastSessionRepository"> 9.12. HazelcastSessionRepository </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-hazelcastsessionrepository-new');" title="9.12.1. Instantiating a HazelcastSessionRepository"> 9.12.1. Instantiating a HazelcastSessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession');" title="9.12.2. EnableHazelcastHttpSession"> 9.12.2. EnableHazelcastHttpSession </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession-customize');" title="9.12.3. Basic Customization"> 9.12.3. Basic Customization </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession-events');" title="9.12.4. Session Events"> 9.12.4. Session Events </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession-storage');" title="9.12.5. Storage Details"> 9.12.5. Storage Details </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/custom-sessionrepository.html');" title="10. Custom SessionRepository"> 10. Custom SessionRepository </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html');" title="11. Upgrading to 2.x"> 11. Upgrading to 2.x </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#baseline-update');" title="11.1. Baseline update"> 11.1. Baseline update </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#replaced-and-removed-modules');" title="11.2. Replaced and Removed Modules"> 11.2. Replaced and Removed Modules </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#replaced-and-removed-packages-classes-and-methods');" title="11.3. Replaced and Removed Packages, Classes and Methods"> 11.3. Replaced and Removed Packages, Classes and Methods </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#dropped-support');" title="11.4. Dropped Support"> 11.4. Dropped Support </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html');" title="12. Spring Session Community"> 12. Spring Session Community </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-support');" title="12.1. Support"> 12.1. Support </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-source');" title="12.2. Source Code"> 12.2. Source Code </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-issues');" title="12.3. Issue Tracking"> 12.3. Issue Tracking </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-contributing');" title="12.4. Contributing"> 12.4. Contributing </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-license');" title="12.5. License"> 12.5. License </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-extensions');" title="12.6. Community Extensions"> 12.6. Community Extensions </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/minimum-requirements.html');" title="13. Minimum Requirements"> 13. Minimum Requirements </a> </li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<header class="book-header">
<div class="dropdown pull-right js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-globe"></i>
</a>
<div class="dropdown-menu dropdown-left">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('zh_CN')">中文</button>
</div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('en_US')">English</button>
</div>
</div>
</div>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign up" href="register.html">
<i class="fa fa-sign-in"></i> <span>注册</span>
</a>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign in" href="register.html">
<i class="fa fa-sign-in"></i>
<span>登录</span>
</a>
<a class="btn pull-left js-toolbar-action btn-summary" href="#"><i class="fa fa-align-justify"></i></a>
<div class="dropdown pull-left font-settings js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Font Settings" href="#">
<i class="fa fa-font"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-2 font-reduce">A</button>
<button class="button size-2 font-enlarge">A</button>
</div>
<div class="buttons">
<button class="button size-2 family-serif">Serif</button>
<button class="button size-2 family-sans">Sans</button>
</div>
<div class="buttons">
<button class="button size-3 theme-white">White</button>
<button class="button size-3 theme-sepia">Sepia</button>
<button class="button size-3 theme-night">Night</button>
</div>
</div>
</div>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Home" href="en.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Tools" href="index37.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
<div class="dropdown pull-left js-toolbar-action mobile">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-chevron-down"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<a class="button size-1" aria-label="Home" href="en.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Tools" href="index37.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
</div>
</div>
</div>
<div id="autocomplete" class="pull-right"></div>
<span id="toolbar-title"></span>
</header>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal markdown-section">
<div id="content">
<h1>Spring Session</h1>
<div><ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6108808167664152" data-ad-slot="6964403648"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div><div class="titlepage">
<div>
<div>
</div>
<div>
<span class="author"><span class="firstname">Rob Winch, Vedran Pavić</span></span>
</div>
</div>
<hr>
</div>
<div class="toc">
<p><b class="notranslate">Table of Contents</b></p>
<dl class="toc">
<dt>
<span class="preface"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/pr01.html');"></a></span>
</dt>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/introduction.html');">1. Introduction</a></span>
</dt>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/what-s-new-in-2-0.html');">2. What’s New in 2.0</a></span>
</dt>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/samples.html');">3. Samples and Guides (Start Here)</a></span>
</dt>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/modules.html');">4. Spring Session Modules</a></span>
</dt>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html');">5. HttpSession Integration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-why');">5.1. Why Spring Session &amp; HttpSession?</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-redis');">5.2. HttpSession with Redis</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-redis-jc');">5.2.1. Redis Java Based Configuration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-spring-configuration');">Spring Java Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#java-servlet-container-initialization');">Java Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-redis-xml');">5.2.2. Redis XML Based Configuration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-xml-spring-configuration');">Spring XML Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#xml-servlet-container-initialization');">XML Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc');">5.3. HttpSession with JDBC</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-jc');">5.3.1. JDBC Java Based Configuration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-spring-configuration');">Spring Java Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#java-servlet-container-initialization-2');">Java Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-xml');">5.3.2. JDBC XML Based Configuration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-xml-spring-configuration');">Spring XML Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#xml-servlet-container-initialization-2');">XML Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot');">5.3.3. JDBC Spring Boot Based Configuration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot-spring-configuration');">Spring Boot Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot-configuration');">Configuring the DataSource</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-jdbc-boot-servlet-configuration');">Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-hazelcast');">5.4. HttpSession with Hazelcast</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#security-spring-configuration');">5.4.1. Spring Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#servlet-container-initialization');">5.4.2. Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-how');">5.5. How HttpSession Integration Works</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-rest');">5.6. HttpSession &amp; RESTful APIs</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#rest-spring-configuration');">5.6.1. Spring Configuration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#servlet-container-initialization-2');">5.6.2. Servlet Container Initialization</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/httpsession.html#httpsession-httpsessionlistener');">5.7. HttpSessionListener</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html');">6. WebSocket Integration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-why');">6.1. Why Spring Session &amp; WebSockets?</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-usage');">6.2. WebSocket Usage</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-httpsession');">6.2.1. HttpSession Integration</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websocket.html#websocket-spring-configuration');">6.2.2. Spring Configuration</a></span>
</dt>
</dl>
</dd>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html');">7. WebSession Integration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html#websession-why');">7.1. Why Spring Session &amp; WebSession?</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html#websession-redis');">7.2. WebSession with Redis</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/websession.html#websession-how');">7.3. How WebSession Integration Works</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html');">8. Spring Security Integration</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html#spring-security-rememberme');">8.1. Spring Security Remember-Me Support</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html#spring-security-concurrent-sessions');">8.2. Spring Security Concurrent Session Control</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/spring-security.html#spring-security-concurrent-sessions-limitations');">8.3. Limitations</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html');">9. API Documentation</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-session');">9.1. Session</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-sessionrepository');">9.2. SessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-findbyindexnamesessionrepository');">9.3. FindByIndexNameSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactivesessionrepository');">9.4. ReactiveSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablespringhttpsession');">9.5. EnableSpringHttpSession</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablespringwebsession');">9.6. EnableSpringWebSession</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository');">9.7. RedisOperationsSessionRepository</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-new');">9.7.1. Instantiating a RedisOperationsSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-config');">9.7.2. EnableRedisHttpSession</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#custom-redisserializer');">Custom RedisSerializer</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#redis-taskexecutor');">9.7.3. Redis TaskExecutor</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-storage');">9.7.4. Storage Details</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#saving-a-session');">Saving a Session</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-writes');">Optimized Writes</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-expiration');">Session Expiration</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-sessiondestroyedevent');">9.7.5. SessionDeletedEvent and SessionExpiredEvent</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-sessioncreatedevent');">9.7.6. SessionCreatedEvent</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-redisoperationssessionrepository-cli');">9.7.7. Viewing the Session in Redis</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository');">9.8. ReactiveRedisOperationsSessionRepository</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-new');">9.8.1. Instantiating a ReactiveRedisOperationsSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-config');">9.8.2. EnableRedisWebSession</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-writes');">Optimized Writes</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactiveredisoperationssessionrepository-cli');">9.8.3. Viewing the Session in Redis</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-mapsessionrepository');">9.9. MapSessionRepository</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-mapsessionrepository-new');">9.9.1. Instantiating MapSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-mapsessionrepository-hazelcast');">9.9.2. Using Spring Session and Hazlecast</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-reactivemapsessionrepository');">9.10. ReactiveMapSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository');">9.11. JdbcOperationsSessionRepository</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository-new');">9.11.1. Instantiating a JdbcOperationsSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository-config');">9.11.2. EnableJdbcHttpSession</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#custom-lobhandler');">Custom LobHandler</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#custom-conversionservice');">Custom ConversionService</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-jdbcoperationssessionrepository-storage');">9.11.3. Storage Details</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#transaction-management');">9.11.4. Transaction management</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-hazelcastsessionrepository');">9.12. HazelcastSessionRepository</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-hazelcastsessionrepository-new');">9.12.1. Instantiating a HazelcastSessionRepository</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession');">9.12.2. EnableHazelcastHttpSession</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession-customize');">9.12.3. Basic Customization</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession-events');">9.12.4. Session Events</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/api.html#api-enablehazelcasthttpsession-storage');">9.12.5. Storage Details</a></span>
</dt>
</dl>
</dd>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/custom-sessionrepository.html');">10. Custom SessionRepository</a></span>
</dt>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html');">11. Upgrading to 2.x</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#baseline-update');">11.1. Baseline update</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#replaced-and-removed-modules');">11.2. Replaced and Removed Modules</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#replaced-and-removed-packages-classes-and-methods');">11.3. Replaced and Removed Packages, Classes and Methods</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/upgrading-2.0.html#dropped-support');">11.4. Dropped Support</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html');">12. Spring Session Community</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-support');">12.1. Support</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-source');">12.2. Source Code</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-issues');">12.3. Issue Tracking</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-contributing');">12.4. Contributing</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-license');">12.5. License</a></span>
</dt>
<dt>
<span class="section"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/community.html#community-extensions');">12.6. Community Extensions</a></span>
</dt>
</dl>
</dd>
<dt>
<span class="chapter"><a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-session/2.1.2.RELEASE/reference/minimum-requirements.html');">13. Minimum Requirements</a></span>
</dt>
</dl>
</div></div>
</div>
</section>
<div class="right-sidebar">
<div class="affix"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6108808167664152" data-ad-slot="3102929424" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
</div>
<div class="ft">
<a href="#toolbar-title" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a>
<footer class="footer">
<div class="footer__container--normal">
<img alt="扫码关注公众号" title="扫码关注公众号" src="static/picture/qr-code.png" width="170" height="170">
<div class="footer__description--normal">
<p class="paragraph footer__author--normal">Docs4dev<sup class="super">&#xAE;</sup>
</p>
<p class="paragraph footer__quote&#45;&#45;normal">
如果你在使用过程中遇到任何问题，可以在 <a href="javascript:window.open('https://github.com/docs4dev/docs4dev-issues');" target="_blank" rel="noopener noreferrer">这里<i class="fa fa-external-link"></i></a> 提issue。
</p>
<div class="footer__main--normal">
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
<a href="javascript:window.open('https://beian.miit.gov.cn/');">
蜀ICP备14021783号-6
</a>
</p>
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
Copyright &#xA9; Docs4dev all
right reserved, powered by <a href="index2.html" target="_blank">Docs4dev</a></p>
</div>
</div>
</div>
<div class="box__issues">
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<script>
  var hasToc = true;
  /*  var downloadable = /!*false*!/ false;
    var editable = /!*false*!/ false;
    var code = /!*"spring-session"*!/ false;
    var version = /!*"2.1.2.RELEASE"*!/ false;
    var type = /!*"reference"*!/ false;
    var lang = /!*"en"*!/ 'en';
    //edit link
    require(["gitbook", "jQuery"], function (gitbook, $) {
      gitbook.events.bind('start', function (e, config) {
        // Add edit toolbar to left
        var chapterId = /!*16492*!/ 0;
        if (downloadable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-download',
            text: '下载',
            onClick: function () {
              window.open('/download?code=' + code + '&version=' + version + '&type=' + type + '&lang=' + lang);
            }
          });
        }
        if (editable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-edit',
            text: '编辑此页',
            onClick: function () {
              window.open('/docs/edit?chapterId=' + chapterId + '&lang=' + lang);
            }
          });
        }
      });
    });*/
</script>
<script>
    var code = "spring-session";
    var lang = "en";
  </script>

<script src="static/js/autocomplete-js.js"></script>
<script src="static/js/app.min.js"></script>
<script src="static/js/search.min.js"></script>
</body>
</html>
